package com.qipay.utils;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import java.util.Map;

public class JsonUtils {

    private static Gson gson = new GsonBuilder().disableHtmlEscaping().create();

    public static Map<String, Object> toMap(String json){
        return  (Map<String, Object>)gson.fromJson(json,Map.class);
    }

    public static String toJson(Map<String,Object> param){
       return gson.toJson(param,Map.class);
    }

}
